package com.client.common;

import android.app.ProgressDialog;
import android.content.Context;

public class SpinnerProgressDialog {

	private static ProgressDialog mProgressDialog = null;

	public static void showDialog(Context context, String message) {
		if (mProgressDialog != null)
			mProgressDialog = null;
		mProgressDialog = new ProgressDialog(context);
		mProgressDialog.setTitle("提示");
		mProgressDialog.setMessage(message);
		mProgressDialog.setIndeterminate(true);
		mProgressDialog.setCancelable(true);
		mProgressDialog.show();
	}
	public static void dismissDialog() {
		if (mProgressDialog != null) {
			mProgressDialog.dismiss();
		}
	}

}
